#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

int main()
{
    int fd = open("01-openmanx.soft", O_WRONLY | O_CREAT, 0666);
    
    unlink("01-openmanx.soft");
    
    int res = write(fd, "Hello", 6);
    if(res > 0) {
        printf("Write ok!\n");
    }
    if(res < 0) {
        perror("Write error: ");
    }

    close(fd);

    return 0;
}

